package dfsketches.gr3d;

public class SplineFactory {

	private SplineType splType;
	
	public SplineFactory(SplineType type) {
		splType = type;
	}
	
	public void setType(SplineType type) {
		splType = type;
	}
	
	public Spline createSpline(SplinePoint[] points) {
		if (splType == SplineType.Linear) {
			return new LinearSpline(points);
		} else {
			return new LinearSpline(points);
		}
	}
	
}